package com.deuwise.system.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import java.util.Date;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;
/**
 * 
 *@author deuwise
 *@date 2018-11-06 14:15:04
 */
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("SYS_USER_TOKEN")
public class SysUserToken extends Model<SysUserToken>  implements Serializable{
    /**用户id*/
    @ApiModelProperty("用户id")
    @TableField("user_id")
    @TableId
    private String userId;

    /**token值*/
    @ApiModelProperty("token值")
    @TableField("token")
    private String token;

    /**过期时间*/
    @ApiModelProperty("过期时间")
    @TableField("expireTime")
    private Date expireTime;

    /**更新时间*/
    @ApiModelProperty("更新时间")
    @TableField("updateTime")
    private Date updateTime;

   @Override
    protected Serializable pkVal() {
        return userId;
    }
}